import asyncio
import time
import aiohttp

url_array = ["https://www.jd.com/"] * 10


async def request_baidu(url):
    async with aiohttp.ClientSession() as session:
        async with session.get(url) as response:
            result = await response.text()
            return result

loop = asyncio.get_event_loop()
task_array = [request_baidu(url) for url in url_array]
result = loop.run_until_complete(asyncio.gather(*task_array))
loop.close()
print(result)